package com.nameless.controller.api;

import com.nameless.entity.Shop;
import com.nameless.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description:
 * @date 2023-02-27 22:03:37
 */
@RestController
@RequestMapping("/car/api/shop")
public class ShopControllerApi {
    @Autowired
    private ShopService shopService;

    @GetMapping("/selectShopAll")
    public List<Shop> selectShopAll(){
        return shopService.selectShopAll();
    }
}
